From e86c5264ed46ece28992195bcb9622cde05d06c3 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 23 Sep 2002 21:15:18 +0000 Subject: [PATCH] Be stricter about signed/unsigned comparisons and conversions. --- mkshort.c | 2 +- psp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mkshort.c b/mkshort.c index 4fde0e11d..8b29731d3 100644 --- a/mkshort.c +++ b/mkshort.c @@ -7,7 +7,7 @@ static const char vowels[] = "aeiouAEIOU"; #define DEFAULT_TARGET_LEN 8 -static int target_len = DEFAULT_TARGET_LEN; +static unsigned int target_len = DEFAULT_TARGET_LEN; #define DEFAULT_BADCHARS "\"$.,'!-" static const char *badchars = DEFAULT_BADCHARS; diff --git a/psp.c b/psp.c index 4c59e66fc..b616f7344 100644 --- a/psp.c +++ b/psp.c @@ -211,7 +211,7 @@ psp_wr_deinit(void) static void psp_read(void) { - unsigned char buff[MAXPSPSTRINGSIZE + 1]; + char buff[MAXPSPSTRINGSIZE + 1]; double radians; waypoint *wpt_tmp; int stringsize; @@ -326,7 +326,7 @@ static void psp_waypt_pr(const waypoint *wpt) { double lon, lat; - unsigned char tbuf[64]; + char tbuf[64]; char c; int i; char *shortname; -- 2.30.2